package com.zhiyou.service.impl;

import com.zhiyou.bean.Admin;
import com.zhiyou.dao.AdminMapper;
import com.zhiyou.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    AdminMapper adminMapper;

    @Override
    public Admin getAdminByNameAndPassword(Admin admin) {
        return adminMapper.selectOne(admin);
    }
}
